package com.desiy.service.impl;

import com.desiy.dao.DepartmentDao;
import com.desiy.entity.Department;
import com.desiy.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;

/**
 * @author Desiy
 * @date 2020/9/21 11:10
 */
@Service
public class DepartmentServiceImpl implements DepartmentService {

    @Autowired
    DepartmentDao departmentDao;

    @Override
    public String selectById(String id) {
        return departmentDao.selectById(id);
    }

    @Override
    public Collection<Department> all_Department() {
        return departmentDao.all_Department();
    }

    @Override
    public int getCount(String id) {
        return departmentDao.getCount(id);
    }
}
